Skip to content

Conversation

@thekaveman
Copy link
Member

Closes #29

Completely rewrites the CLI commands away from manual argparse construction to use @click.command and @click.group definitions.

This lead to a massive simplification of the tests as well ☺️

@github-actions
Copy link

github-actions bot commented Dec 19, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  compiler_admin
  main.py 15
  compiler_admin/commands
  info.py
  init.py
  compiler_admin/commands/time
  __init__.py 12
  convert.py
  download.py 106
  compiler_admin/commands/user
  __init__.py 18
  alumni.py
  convert.py
  create.py
  delete.py
  offboard.py 75-76
  reset.py
  restore.py
  signout.py
  compiler_admin/services
  toggl.py
Project Total  

This report was generated by python-coverage-comment-action

@thekaveman thekaveman self-assigned this Dec 19, 2024
@thekaveman thekaveman force-pushed the feat/justworks branch 2 times, most recently from 147b26d to 98f0b7c Compare December 20, 2024 03:49
@thekaveman thekaveman force-pushed the refactor/click-cli branch 3 times, most recently from abca56c to 3039112 Compare December 20, 2024 04:06
Base automatically changed from feat/justworks to main December 20, 2024 04:20
@thekaveman thekaveman marked this pull request as ready for review December 20, 2024 04:21
@thekaveman
Copy link
Member Author

Used the newly refactored CLI to do the hours download and conversion today -- worked without any issues 👍

@thekaveman thekaveman merged commit 024b5b4 into main Dec 21, 2024
2 checks passed
@thekaveman thekaveman deleted the refactor/click-cli branch December 21, 2024 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor commands into a class-based architecture

2 participants